package org.aristotle.auth.constant;

/**
 * 系统常量
 */
public class SysAuthConstant {
    /*缓存中redis的key*/
    public final static String OAUTH_URLS="oauth2:oauth_urls";

    /**JWT令牌黑名单的KEY*/
    public final static String JTI_KEY_BLACK_PREFIX="oauth2:black:";

    /**角色前缀*/
    public final static String ROLE_PREFIX="ROLE_";

    /**方法连接符*/
    public final static String METHOD_SUFFIX=":";

    /**超级管理员*/
    public final static String ROLE_ROOT_CODE="ROLE_root";

    /**认证请求头key*/
    public final static String JWT_TOKEN_HEADER = "Authorization";

    /*jwt存储权限属性*/
    public final static String JWT_AUTHORITIES_KEY = "authorities";

    /*jwt令牌前缀*/
    public final static String JWT_PREFIX = "Bearer ";

    /*jwt ID 唯一标识*/
    public final static String JWT_JTI = "jti";

    /*jwt载体key*/
    public final static String JWT_PAYLOAD_KEY = "payload";

}
